#include <stdio.h>


int mystrcmp(char *arr1,char *arr2)
{
	int i=0;
	while(arr1[i]==arr2[i])
	{
		printf("%d\n",i);
		if(arr1[i]==arr2[i]=='\0')
		{
			break;
		}
		i++;
	}
	if(arr1[i]=='\0'&&arr2[i]=='\0')
	{
		return 0;
	}
	if(arr1[i]>arr2[i])
	{
		return 1;
	}
	if(arr1[i]<arr2[i])
	{
		return -1;
	}


	
}
int main(int argc, const char *argv[])
{
	char arr1[5]="a";
	char arr2[5]="bc";

	int num=mystrcmp(arr1,arr2);
	printf("%d\n",num);

	return 0;
}
